package com.lintf.bot.wechat;

import com.lintf.bot.wechat.dto.NotificationsSendDTO;

/**
 * @author lin tingfeng
 * @system Mac
 * @data 2024/6/7 15:12
 * @package_name com.lintf.bot.wechat
 * @project_name mobile-project
 * @desc
 */
public class StrategySelector {

    private NotificationStrategy strategy = null;

    public StrategySelector(NotificationStrategy strategy) {
        this.strategy = strategy;
    }

    public void sendNotification(NotificationsSendDTO dto) {
        strategy.sendNotifications(dto);
    }
}
